package workplace

import (
	"ginfwk/framework/core/gins"
)

type AdminWorkplace struct {
	Workplace
}

func (a *AdminWorkplace) Register(r gins.IRoutes) {
	g := r.Group("/workplace")
	{
		// 分析页统计接口
		g.GET("/total", a.Workplace.Total)

		// 用户来源
		g.GET("/radar", a.Workplace.Radar)

		// 每周用户活跃量
		g.GET("/dynamic", a.Workplace.Dynamic)

		// 每月销售额
		g.GET("/project", a.Workplace.Project)

		// 每月销售额
		g.GET("/team", a.Workplace.Team)
	}
}
